package com.hqd.ch03.v49.beans.factory.parsing;

import com.hqd.ch03.v49.io.Resource;

public class PassThroughSourceExtractor implements SourceExtractor {

    /**
     * Simply returns the supplied {@code sourceCandidate} as-is.
     *
     * @param sourceCandidate the source metadata
     * @return the supplied {@code sourceCandidate}
     */
    @Override
    public Object extractSource(Object sourceCandidate, Resource definingResource) {
        return sourceCandidate;
    }

}
